package com.cy.pj.sys.service;


import com.cy.pj.common.pojo.PageObject;
import com.cy.pj.sys.pojo.SysUser;
import com.cy.pj.sys.vo.SysUserDeptVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;

import java.util.Map;
@RequiresPermissions("sys:user:update")
public interface SysUserService {

    PageObject<SysUserDeptVo> findPageObjects(
            String username,Integer pageCurrent);

    int validById(Integer id,Integer valid);

    int saveObject(SysUser entity, Integer[]roleIds);

    Map<String,Object> findObjectById(Integer userId) ;

    int updateObject(SysUser entity,Integer[] roleIds);

    int updatePassword(String password, String newPassword, String cfgPassword);
}
